<?php
	$db = mysql_connect("localhost", "phylotype","phylo");

	mysql_select_db("phylotype",$db);

	$title = "RNA Viruses";
?>


<html>
	<head>
		<?php echo("<title>Oxford Evolutionary Biology - $title</title>\n"); ?>
		<link href="../evolve.css" rel="stylesheet" media="screen">
	</head>

<body>

<?php 
	include("../evolve.inc");
	
	drawHeader();

		$result = mysql_query("SELECT * FROM refs ORDER BY name ASC",$db);	
	
		if ($virus = mysql_fetch_array($result)) {
			do {
				printf("<div><a href=\"sequences.php?virus_name=%s\">%s %s %s</a></div>", 
					 $virus["name"], $virus["taxon_id"], $virus["name"], $virus["family"]);
			} while ($virus = mysql_fetch_array($result));
		} else {
			echo "No viruses in the database";	
		}
		
	drawFooter("Andrew Rambaut"); 
	closeDocument();
?>
       
